<?php
	//fil d'ariane
	$ariane = array(
		array(
			'href' => "index.php",
			'name' => "Home"
		),
		array(
			'href' => "adm_home.php",
			'name' => "Admin"
		)
	);
	
	require("include/includes.php");
	require("include/getIP.php");
	
	// CHECK IF THE USER CAN SEE THE PAGE
	if(!checkRights(VALIDATOR))
	{
		die('Permission denied');
	}
	
	// Valeurs initiales
	$errors = Array();
	
	$template = $twig->loadTemplate('admin/home.html');
	$template->display(array(
		'pageTitle' 		=> 'Back4ever',
		'errors'			=> $errors
	));
?>